home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / AVComponents.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  24.3 KB  |  788 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AVComponents.a
  3. ;
  4. ;    Contains:    Standard includes for standard AV panels
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__AVCOMPONENTS__') = 'UNDEFINED' THEN
  18. __AVCOMPONENTS__ SET 1
  19.  
  20.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  21.     include 'Dialogs.a'
  22.     ENDIF
  23.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  24.     include 'Video.a'
  25.     ENDIF
  26.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  27.     include 'Displays.a'
  28.     ENDIF
  29.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  30.     include 'Components.a'
  31.     ENDIF
  32.  
  33. ;    The subtypes listed here are for example only.  The display manager will find _all_ panels
  34. ;      with the appropriate types.  These panels return class information that is used to devide them
  35. ;      up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
  36. ;      like that.
  37. ;
  38.  
  39.  
  40. kAVPanelType                    EQU        'avpc'                ; Panel subtypes            
  41. kBrightnessPanelSubType            EQU        'brit'
  42. kContrastPanelSubType            EQU        'cont'
  43. kBitDepthPanelSubType            EQU        'bitd'
  44. kAVEngineType                    EQU        'avec'                ; Engine subtypes                
  45. kBrightnessEngineSubType        EQU        'brit'
  46. kContrastEngineSubType            EQU        'cont'                ;    kBitDepthEngineSubType        = 'bitd',            // Not used                    
  47. kAVPortType                        EQU        'avdp'                ;subtypes are defined in each port's public .h file
  48. ;  PortComponent subtypes are up to the port and display manager does not use the subtype
  49. ;    to find port components.  Instead, display manager uses an internal cache to search for portcompoennts.
  50. ;    It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
  51. ;    a particular port component.
  52. ;  
  53. ;   PortKinds are the "class" of port.  When a port is registered with display manager (creating a display ID), the
  54. ;    caller of DMNewDisplayIDByPortComponent passes a portKind.  Ports of this type are returned by
  55. ;    DMNewDevicePortList.
  56. ;  
  57. ;   PortKinds are NOT subtypes of components
  58. ;   PortKinds ARE used to register and find port components with Display Manager.  Here are the basic port kinds:
  59. ;  
  60. ;   Video displays are distinct from video out because there are some video out ports that are not actaully displays.
  61. ;    if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
  62.  
  63.  
  64. kAVVideoDisplayPortKind            EQU        'pkdo'                ; Video Display (CRT or panel display)                
  65. kAVVideoOutPortKind                EQU        'pkvo'                ; Video out port (camera output).                      
  66. kAVVideoInPortKind                EQU        'pkvi'                ; Video in port (camera input)                        
  67. kAVSoundOutPortKind                EQU        'pkso'                ; Sound out port (speaker or speaker jack)            
  68. kAVSoundInPortKind                EQU        'pksi'                ; Sound in port (microphone or microphone jack)    
  69. kAVDeviceType                    EQU        'avdc'                ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) 
  70. kAVDisplayDeviceKind            EQU        'dkvo'                ; Display device
  71.                                                             ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster)
  72. kAVCategoryType                    EQU        'avcc'
  73. kAVSoundInSubType                EQU        'avao'
  74. kAVSoundOutSubType                EQU        'avai'
  75. kAVVideoInSubType                EQU        'vdin'
  76. kAVVideoOutSubType                EQU        'vdou'
  77. kAVInvalidType                    EQU        'badt'                ; Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType 
  78.  
  79. ;   Interface Signatures are used to identify what kind of component
  80. ;   calls can be made for a given component. Today this applies only
  81. ;   to ports, but could be applied to other components as well.
  82.  
  83.  
  84.  
  85. kAVGenericInterfaceSignature    EQU        'dmgr'
  86. kAVAppleVisionInterfaceSignature EQU    'avav'
  87.  
  88. ;   Constants for Panel Classes (used to build buttons in AVSetup) 
  89. ;   but is generic to all panels 
  90.  
  91.  
  92.  
  93. kAVPanelClassDisplayDefault        EQU        'cdsp'
  94. kAVPanelClassColor                EQU        'cclr'
  95. kAVPanelClassGeometry            EQU        'cgeo'
  96. kAVPanelClassSound                EQU        'csnd'
  97. kAVPanelClassPreferences        EQU        'cprf'
  98. ;  =============================                    
  99. ;  Component interface revision levels and history    
  100. ;  =============================                    
  101.  
  102. kAVPanelComponentInterfaceRevOne EQU    1
  103. kAVEngineComponentInterfaceRevOne EQU    1
  104. kAVPortComponentInterfaceRevOne    EQU        1
  105. kAVDeviceComponentInterfaceRevOne EQU    1
  106.  
  107.  
  108. kBaseAVComponentSelector        EQU        256                    ; First apple-defined selector for AV components 
  109. kAppleAVComponentSelector        EQU        512                    ; First apple-defined type-specific selector for AV components 
  110.  
  111. ;  =============================                
  112. ;  Panel Standard component selectors            
  113. ;  =============================                
  114.  
  115. kAVPanelFakeRegisterSelect        EQU        -5                    ; -5    
  116. kAVPanelSetCustomDataSelect        EQU        0
  117. kAVPanelGetDitlSelect            EQU        1
  118. kAVPanelGetTitleSelect            EQU        2
  119. kAVPanelInstallSelect            EQU        3
  120. kAVPanelEventSelect                EQU        4
  121. kAVPanelItemSelect                EQU        5
  122. kAVPanelRemoveSelect            EQU        6
  123. kAVPanelValidateInputSelect        EQU        7
  124. kAVPanelGetSettingsIdentifiersSelect EQU 8
  125. kAVPanelGetSettingsSelect        EQU        9
  126. kAVPanelSetSettingsSelect        EQU        10
  127. kAVPanelSelectorGetFidelitySelect EQU    256
  128. kAVPanelSelectorTargetDeviceSelect EQU    257
  129. kAVPanelSelectorGetPanelClassSelect EQU    258
  130.  
  131. ;  =============================                
  132. ;  Engine Standard component selectors            
  133. ;  =============================                
  134.  
  135. kAVEngineGetEngineFidelitySelect EQU    256
  136. kAVEngineTargetDeviceSelect        EQU        257
  137.  
  138. ;  =============================                    
  139. ;  Video Port Specific calls                        
  140. ;  =============================                    
  141.  
  142. kAVPortCheckTimingModeSelect    EQU        0
  143. kAVPortReserved1Select            EQU        1                    ; Reserved
  144. kAVPortReserved2Select            EQU        2                    ; Reserved
  145. kAVPortGetDisplayTimingInfoSelect EQU    512
  146.  
  147. ;  =============================                    
  148. ;  AV Port Specific calls                            
  149. ;  =============================                    
  150.  
  151. kAVPortGetAVDeviceFidelitySelect EQU    256                    ; Port Standard Component selectors 
  152. kAVPortGetWiggleSelect            EQU        257
  153. kAVPortSetWiggleSelect            EQU        258
  154. kAVPortGetNameSelect            EQU        259
  155. kAVPortGetGraphicInfoSelect        EQU        260
  156. kAVPortSetActiveSelect            EQU        261
  157. kAVPortGetActiveSelect            EQU        262
  158. kAVPortUnsed1Select                EQU        263                    ; Selector removed as part of API change.  We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector). 
  159. kAVPortGetAVIDSelect            EQU        264
  160. kAVPortSetAVIDSelect            EQU        265
  161. kAVPortSetDeviceAVIDSelect        EQU        266                    ; For registrar to set device (instead of hitting global directly) -- should only be called once 
  162. kAVPortGetDeviceAVIDSelect        EQU        267                    ; Called by display mgr for generic ports 
  163. kAVPortGetPowerStateSelect        EQU        268
  164. kAVPortSetPowerStateSelect        EQU        269
  165. kAVPortGetMakeAndModelSelect    EQU        270                    ; Get Make and model information
  166. kAVPortGetInterfaceSignatureSelect EQU    271                    ; To determine what VideoPort-specific calls can be made
  167. kAVPortReserved3Select            EQU        272                    ; Reserved
  168. kAVPortGetManufactureInfoSelect    EQU        273                    ; Get more Make and model information  
  169.  
  170.  
  171.  
  172. ;  =============================                    
  173. ;  Device Component Standard Component selectors    
  174. ;  =============================                    
  175.  
  176. kAVDeviceGetNameSelect            EQU        256
  177. kAVDeviceGetGraphicInfoSelect    EQU        257
  178. kAVDeviceGetPowerStateSelect    EQU        258
  179. kAVDeviceSetPowerStateSelect    EQU        259
  180. kAVDeviceGetAVIDSelect            EQU        260
  181. kAVDeviceSetAVIDSelect            EQU        261
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. ;  =============================                
  190. ;  Engine Standard component selectors            
  191. ;  =============================                
  192. ;
  193. ; pascal ComponentResult AVEngineComponentGetFidelity(ComponentInstance engineComponent, DisplayIDType displayID, DMFidelityType *engineFidelity)
  194. ;
  195.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  196.         Macro
  197.         _AVEngineComponentGetFidelity
  198.             move.l              #$00080100,-(sp)
  199.             moveq               #0,D0
  200.             dc.w                $A82A
  201.         EndM
  202.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  203.         IMPORT_CFM_FUNCTION AVEngineComponentGetFidelity
  204.     ENDIF
  205.  
  206. ;
  207. ; pascal ComponentResult AVEngineComponentTargetDevice(ComponentInstance engineComponent, DisplayIDType displayID)
  208. ;
  209.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  210.         Macro
  211.         _AVEngineComponentTargetDevice
  212.             move.l              #$00040101,-(sp)
  213.             moveq               #0,D0
  214.             dc.w                $A82A
  215.         EndM
  216.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  217.         IMPORT_CFM_FUNCTION AVEngineComponentTargetDevice
  218.     ENDIF
  219.  
  220.  
  221. ;  =============================                
  222. ;  Panel Standard Component calls                
  223. ;  =============================                
  224. ;
  225. ; pascal ComponentResult AVPanelFakeRegister(ComponentInstance ci)
  226. ;
  227.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  228.         Macro
  229.         _AVPanelFakeRegister
  230.             move.l              #$0000FFFB,-(sp)
  231.             moveq               #0,D0
  232.             dc.w                $A82A
  233.         EndM
  234.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  235.         IMPORT_CFM_FUNCTION AVPanelFakeRegister
  236.     ENDIF
  237.  
  238. ;
  239. ; pascal ComponentResult AVPanelSetCustomData(ComponentInstance ci, long theCustomData)
  240. ;
  241.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  242.         Macro
  243.         _AVPanelSetCustomData
  244.             move.l              #$00040000,-(sp)
  245.             moveq               #0,D0
  246.             dc.w                $A82A
  247.         EndM
  248.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  249.         IMPORT_CFM_FUNCTION AVPanelSetCustomData
  250.     ENDIF
  251.  
  252. ;
  253. ; pascal ComponentResult AVPanelGetDitl(ComponentInstance ci, Handle *ditl)
  254. ;
  255.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  256.         Macro
  257.         _AVPanelGetDitl
  258.             move.l              #$00040001,-(sp)
  259.             moveq               #0,D0
  260.             dc.w                $A82A
  261.         EndM
  262.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  263.         IMPORT_CFM_FUNCTION AVPanelGetDitl
  264.     ENDIF
  265.  
  266. ;
  267. ; pascal ComponentResult AVPanelGetTitle(ComponentInstance ci, StringPtr title)
  268. ;
  269.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  270.         Macro
  271.         _AVPanelGetTitle
  272.             move.l              #$00040002,-(sp)
  273.             moveq               #0,D0
  274.             dc.w                $A82A
  275.         EndM
  276.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  277.         IMPORT_CFM_FUNCTION AVPanelGetTitle
  278.     ENDIF
  279.  
  280. ;
  281. ; pascal ComponentResult AVPanelInstall(ComponentInstance ci, DialogPtr dialog, long itemOffset)
  282. ;
  283.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  284.         Macro
  285.         _AVPanelInstall
  286.             move.l              #$00080003,-(sp)
  287.             moveq               #0,D0
  288.             dc.w                $A82A
  289.         EndM
  290.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  291.         IMPORT_CFM_FUNCTION AVPanelInstall
  292.     ENDIF
  293.  
  294. ;
  295. ; pascal ComponentResult AVPanelEvent(ComponentInstance ci, DialogPtr dialog, long itemOffset, EventRecord *event, short *itemHit, Boolean *handled)
  296. ;
  297.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  298.         Macro
  299.         _AVPanelEvent
  300.             move.l              #$00140004,-(sp)
  301.             moveq               #0,D0
  302.             dc.w                $A82A
  303.         EndM
  304.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  305.         IMPORT_CFM_FUNCTION AVPanelEvent
  306.     ENDIF
  307.  
  308. ;
  309. ; pascal ComponentResult AVPanelItem(ComponentInstance ci, DialogPtr dialog, long itemOffset, short itemNum)
  310. ;
  311.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  312.         Macro
  313.         _AVPanelItem
  314.             move.l              #$000A0005,-(sp)
  315.             moveq               #0,D0
  316.             dc.w                $A82A
  317.         EndM
  318.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  319.         IMPORT_CFM_FUNCTION AVPanelItem
  320.     ENDIF
  321.  
  322. ;
  323. ; pascal ComponentResult AVPanelRemove(ComponentInstance ci, DialogPtr dialog, long itemOffset)
  324. ;
  325.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  326.         Macro
  327.         _AVPanelRemove
  328.             move.l              #$00080006,-(sp)
  329.             moveq               #0,D0
  330.             dc.w                $A82A
  331.         EndM
  332.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  333.         IMPORT_CFM_FUNCTION AVPanelRemove
  334.     ENDIF
  335.  
  336. ;
  337. ; pascal ComponentResult AVPanelValidateInput(ComponentInstance ci, Boolean *ok)
  338. ;
  339.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  340.         Macro
  341.         _AVPanelValidateInput
  342.             move.l              #$00040007,-(sp)
  343.             moveq               #0,D0
  344.             dc.w                $A82A
  345.         EndM
  346.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  347.         IMPORT_CFM_FUNCTION AVPanelValidateInput
  348.     ENDIF
  349.  
  350. ;
  351. ; pascal ComponentResult AVPanelGetSettingsIdentifiers(ComponentInstance ci, short *theID, OSType *theType)
  352. ;
  353.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  354.         Macro
  355.         _AVPanelGetSettingsIdentifiers
  356.             move.l              #$00080008,-(sp)
  357.             moveq               #0,D0
  358.             dc.w                $A82A
  359.         EndM
  360.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  361.         IMPORT_CFM_FUNCTION AVPanelGetSettingsIdentifiers
  362.     ENDIF
  363.  
  364. ;
  365. ; pascal ComponentResult AVPanelGetSettings(ComponentInstance ci, Handle *userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  366. ;
  367.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  368.         Macro
  369.         _AVPanelGetSettings
  370.             move.l              #$00100009,-(sp)
  371.             moveq               #0,D0
  372.             dc.w                $A82A
  373.         EndM
  374.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  375.         IMPORT_CFM_FUNCTION AVPanelGetSettings
  376.     ENDIF
  377.  
  378. ;
  379. ; pascal ComponentResult AVPanelSetSettings(ComponentInstance ci, Handle userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  380. ;
  381.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  382.         Macro
  383.         _AVPanelSetSettings
  384.             move.l              #$0010000A,-(sp)
  385.             moveq               #0,D0
  386.             dc.w                $A82A
  387.         EndM
  388.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  389.         IMPORT_CFM_FUNCTION AVPanelSetSettings
  390.     ENDIF
  391.  
  392. ;
  393. ; pascal ComponentResult AVPanelGetFidelity(ComponentInstance panelComponent, DisplayIDType displayID, DMFidelityType *panelFidelity)
  394. ;
  395.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  396.         Macro
  397.         _AVPanelGetFidelity
  398.             move.l              #$00080100,-(sp)
  399.             moveq               #0,D0
  400.             dc.w                $A82A
  401.         EndM
  402.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  403.         IMPORT_CFM_FUNCTION AVPanelGetFidelity
  404.     ENDIF
  405.  
  406. ;
  407. ; pascal ComponentResult AVPanelComponentTargetDevice(ComponentInstance panelComponent, DisplayIDType displayID, DialogPtr theDialog, long itemsOffset)
  408. ;
  409.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  410.         Macro
  411.         _AVPanelComponentTargetDevice
  412.             move.l              #$000C0101,-(sp)
  413.             moveq               #0,D0
  414.             dc.w                $A82A
  415.         EndM
  416.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  417.         IMPORT_CFM_FUNCTION AVPanelComponentTargetDevice
  418.     ENDIF
  419.  
  420. ;
  421. ; pascal ComponentResult AVPanelComponentGetPanelClass(ComponentInstance panelComponent, ResType *panelClass, ResType *subClass, Ptr reserved1, Ptr reserved2)
  422. ;
  423.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  424.         Macro
  425.         _AVPanelComponentGetPanelClass
  426.             move.l              #$00100102,-(sp)
  427.             moveq               #0,D0
  428.             dc.w                $A82A
  429.         EndM
  430.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  431.         IMPORT_CFM_FUNCTION AVPanelComponentGetPanelClass
  432.     ENDIF
  433.  
  434.  
  435. ;  =============================                
  436. ;  Port Component Standard Component selectors    
  437. ;  =============================                
  438. ;
  439. ; pascal ComponentResult AVPortGetAVDeviceFidelity(ComponentInstance portComponent, AVIDType deviceAVID, DMFidelityType *portFidelity)
  440. ;
  441.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  442.         Macro
  443.         _AVPortGetAVDeviceFidelity
  444.             move.l              #$00080100,-(sp)
  445.             moveq               #0,D0
  446.             dc.w                $A82A
  447.         EndM
  448.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  449.         IMPORT_CFM_FUNCTION AVPortGetAVDeviceFidelity
  450.     ENDIF
  451.  
  452. ;
  453. ; pascal ComponentResult AVPortGetWiggle(ComponentInstance portComponent, Boolean *wiggleDevice)
  454. ;
  455.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  456.         Macro
  457.         _AVPortGetWiggle
  458.             move.l              #$00040101,-(sp)
  459.             moveq               #0,D0
  460.             dc.w                $A82A
  461.         EndM
  462.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  463.         IMPORT_CFM_FUNCTION AVPortGetWiggle
  464.     ENDIF
  465.  
  466. ;
  467. ; pascal ComponentResult AVPortSetWiggle(ComponentInstance portComponent, Boolean wiggleDevice)
  468. ;
  469.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  470.         Macro
  471.         _AVPortSetWiggle
  472.             move.l              #$00020102,-(sp)
  473.             moveq               #0,D0
  474.             dc.w                $A82A
  475.         EndM
  476.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  477.         IMPORT_CFM_FUNCTION AVPortSetWiggle
  478.     ENDIF
  479.  
  480. ;
  481. ; pascal ComponentResult AVPortGetName(ComponentInstance portComponent, Str255 portName)
  482. ;
  483.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  484.         Macro
  485.         _AVPortGetName
  486.             move.l              #$00040103,-(sp)
  487.             moveq               #0,D0
  488.             dc.w                $A82A
  489.         EndM
  490.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  491.         IMPORT_CFM_FUNCTION AVPortGetName
  492.     ENDIF
  493.  
  494. ;
  495. ; pascal ComponentResult AVPortGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  496. ;
  497.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  498.         Macro
  499.         _AVPortGetGraphicInfo
  500.             move.l              #$000C0104,-(sp)
  501.             moveq               #0,D0
  502.             dc.w                $A82A
  503.         EndM
  504.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  505.         IMPORT_CFM_FUNCTION AVPortGetGraphicInfo
  506.     ENDIF
  507.  
  508. ;
  509. ; pascal ComponentResult AVPortSetActive(ComponentInstance portComponent, Boolean setActive)
  510. ;
  511.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  512.         Macro
  513.         _AVPortSetActive
  514.             move.l              #$00020105,-(sp)
  515.             moveq               #0,D0
  516.             dc.w                $A82A
  517.         EndM
  518.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  519.         IMPORT_CFM_FUNCTION AVPortSetActive
  520.     ENDIF
  521.  
  522. ;
  523. ; pascal ComponentResult AVPortGetActive(ComponentInstance portComponent, Boolean *isPortActive, Boolean *portCanBeActivated, void *reserved)
  524. ;
  525.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  526.         Macro
  527.         _AVPortGetActive
  528.             move.l              #$000C0106,-(sp)
  529.             moveq               #0,D0
  530.             dc.w                $A82A
  531.         EndM
  532.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  533.         IMPORT_CFM_FUNCTION AVPortGetActive
  534.     ENDIF
  535.  
  536. ;
  537. ; pascal ComponentResult AVPortGetAVID(ComponentInstance portComponent, AVIDType *avPortID)
  538. ;
  539.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  540.         Macro
  541.         _AVPortGetAVID
  542.             move.l              #$00040108,-(sp)
  543.             moveq               #0,D0
  544.             dc.w                $A82A
  545.         EndM
  546.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  547.         IMPORT_CFM_FUNCTION AVPortGetAVID
  548.     ENDIF
  549.  
  550. ;
  551. ; pascal ComponentResult AVPortSetAVID(ComponentInstance portComponent, AVIDType avPortID)
  552. ;
  553.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  554.         Macro
  555.         _AVPortSetAVID
  556.             move.l              #$00040109,-(sp)
  557.             moveq               #0,D0
  558.             dc.w                $A82A
  559.         EndM
  560.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  561.         IMPORT_CFM_FUNCTION AVPortSetAVID
  562.     ENDIF
  563.  
  564. ;
  565. ; pascal ComponentResult AVPortSetDeviceAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  566. ;
  567.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  568.         Macro
  569.         _AVPortSetDeviceAVID
  570.             move.l              #$0004010A,-(sp)
  571.             moveq               #0,D0
  572.             dc.w                $A82A
  573.         EndM
  574.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  575.         IMPORT_CFM_FUNCTION AVPortSetDeviceAVID
  576.     ENDIF
  577.  
  578. ;
  579. ; pascal ComponentResult AVPortGetDeviceAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  580. ;
  581.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  582.         Macro
  583.         _AVPortGetDeviceAVID
  584.             move.l              #$0004010B,-(sp)
  585.             moveq               #0,D0
  586.             dc.w                $A82A
  587.         EndM
  588.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  589.         IMPORT_CFM_FUNCTION AVPortGetDeviceAVID
  590.     ENDIF
  591.  
  592. ;
  593. ; pascal ComponentResult AVPortGetPowerState(ComponentInstance portComponent, AVPowerStatePtr getPowerState)
  594. ;
  595.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  596.         Macro
  597.         _AVPortGetPowerState
  598.             move.l              #$0004010C,-(sp)
  599.             moveq               #0,D0
  600.             dc.w                $A82A
  601.         EndM
  602.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  603.         IMPORT_CFM_FUNCTION AVPortGetPowerState
  604.     ENDIF
  605.  
  606. ;
  607. ; pascal ComponentResult AVPortSetPowerState(ComponentInstance portComponent, AVPowerStatePtr setPowerState)
  608. ;
  609.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  610.         Macro
  611.         _AVPortSetPowerState
  612.             move.l              #$0004010D,-(sp)
  613.             moveq               #0,D0
  614.             dc.w                $A82A
  615.         EndM
  616.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  617.         IMPORT_CFM_FUNCTION AVPortSetPowerState
  618.     ENDIF
  619.  
  620. ;
  621. ; pascal ComponentResult AVPortGetMakeAndModel(ComponentInstance portComponent, DisplayIDType theDisplayID, ResType *manufacturer, UInt32 *model, UInt32 *serialNumber)
  622. ;
  623.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  624.         Macro
  625.         _AVPortGetMakeAndModel
  626.             move.l              #$0010010E,-(sp)
  627.             moveq               #0,D0
  628.             dc.w                $A82A
  629.         EndM
  630.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  631.         IMPORT_CFM_FUNCTION AVPortGetMakeAndModel
  632.     ENDIF
  633.  
  634. ;
  635. ; pascal ComponentResult AVPortGetInterfaceSignature(ComponentInstance portComponent, OSType *interfaceSignature)
  636. ;
  637.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  638.         Macro
  639.         _AVPortGetInterfaceSignature
  640.             move.l              #$0004010F,-(sp)
  641.             moveq               #0,D0
  642.             dc.w                $A82A
  643.         EndM
  644.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  645.         IMPORT_CFM_FUNCTION AVPortGetInterfaceSignature
  646.     ENDIF
  647.  
  648. ;
  649. ; pascal ComponentResult AVPortGetManufactureInfo(ComponentInstance portComponent, DisplayIDType theDisplayID, DMMakeAndModelPtr theMakeAndModel)
  650. ;
  651.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  652.         Macro
  653.         _AVPortGetManufactureInfo
  654.             move.l              #$00080111,-(sp)
  655.             moveq               #0,D0
  656.             dc.w                $A82A
  657.         EndM
  658.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  659.         IMPORT_CFM_FUNCTION AVPortGetManufactureInfo
  660.     ENDIF
  661.  
  662.  
  663. ;  =============================                
  664. ;  Video Out Port Component Selectors            
  665. ;  =============================                
  666. ;
  667. ; pascal ComponentResult AVPortCheckTimingMode(ComponentInstance displayComponent, DisplayIDType theDisplayID, VDDisplayConnectInfoPtr connectInfo, VDTimingInfoPtr modeTiming, UInt32 reserved)
  668. ;
  669.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  670.         Macro
  671.         _AVPortCheckTimingMode
  672.             move.l              #$00100000,-(sp)
  673.             moveq               #0,D0
  674.             dc.w                $A82A
  675.         EndM
  676.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  677.         IMPORT_CFM_FUNCTION AVPortCheckTimingMode
  678.     ENDIF
  679.  
  680. ;
  681. ; pascal ComponentResult AVPortGetDisplayTimingInfo(ComponentInstance displayComponent, VDTimingInfoPtr modeTiming, UInt32 requestedVersion, DMDisplayTimingInfoPtr modeInfo, UInt32 reserved)
  682. ;
  683.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  684.         Macro
  685.         _AVPortGetDisplayTimingInfo
  686.             move.l              #$00100200,-(sp)
  687.             moveq               #0,D0
  688.             dc.w                $A82A
  689.         EndM
  690.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  691.         IMPORT_CFM_FUNCTION AVPortGetDisplayTimingInfo
  692.     ENDIF
  693.  
  694. ;  =============================                
  695. ;  AV Device Component Selectors                
  696. ;  =============================                
  697. ;
  698. ; pascal ComponentResult AVDeviceGetName(ComponentInstance deviceComponent, Str255 portName)
  699. ;
  700.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  701.         Macro
  702.         _AVDeviceGetName
  703.             move.l              #$00040100,-(sp)
  704.             moveq               #0,D0
  705.             dc.w                $A82A
  706.         EndM
  707.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  708.         IMPORT_CFM_FUNCTION AVDeviceGetName
  709.     ENDIF
  710.  
  711. ;
  712. ; pascal ComponentResult AVDeviceGetGraphicInfo(ComponentInstance deviceComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  713. ;
  714.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  715.         Macro
  716.         _AVDeviceGetGraphicInfo
  717.             move.l              #$000C0101,-(sp)
  718.             moveq               #0,D0
  719.             dc.w                $A82A
  720.         EndM
  721.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  722.         IMPORT_CFM_FUNCTION AVDeviceGetGraphicInfo
  723.     ENDIF
  724.  
  725. ;
  726. ; pascal ComponentResult AVDeviceGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  727. ;
  728.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  729.         Macro
  730.         _AVDeviceGetPowerState
  731.             move.l              #$00040102,-(sp)
  732.             moveq               #0,D0
  733.             dc.w                $A82A
  734.         EndM
  735.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  736.         IMPORT_CFM_FUNCTION AVDeviceGetPowerState
  737.     ENDIF
  738.  
  739. ;
  740. ; pascal ComponentResult AVDeviceSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  741. ;
  742.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  743.         Macro
  744.         _AVDeviceSetPowerState
  745.             move.l              #$00040103,-(sp)
  746.             moveq               #0,D0
  747.             dc.w                $A82A
  748.         EndM
  749.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  750.         IMPORT_CFM_FUNCTION AVDeviceSetPowerState
  751.     ENDIF
  752.  
  753. ;
  754. ; pascal ComponentResult AVDeviceGetAVID(ComponentInstance deviceComponent, AVIDType *avDeviceID)
  755. ;
  756.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  757.         Macro
  758.         _AVDeviceGetAVID
  759.             move.l              #$00040104,-(sp)
  760.             moveq               #0,D0
  761.             dc.w                $A82A
  762.         EndM
  763.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  764.         IMPORT_CFM_FUNCTION AVDeviceGetAVID
  765.     ENDIF
  766.  
  767. ;
  768. ; pascal ComponentResult AVDeviceSetAVID(ComponentInstance deviceComponent, AVIDType avDeviceID)
  769. ;
  770.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  771.         Macro
  772.         _AVDeviceSetAVID
  773.             move.l              #$00040105,-(sp)
  774.             moveq               #0,D0
  775.             dc.w                $A82A
  776.         EndM
  777.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  778.         IMPORT_CFM_FUNCTION AVDeviceSetAVID
  779.     ENDIF
  780.  
  781.  
  782.  
  783.  
  784.     ENDIF ; __AVCOMPONENTS__ 
  785.  
  786.